<!--
 * @Description: 
 * @Date: 2024-05-16 11:03:38
 * @LastEditTime: 2024-08-26 16:57:49
-->
<route lang="json5">
{
  style: {
    navigationBarTitleText: '视频接访',
    navigationBarTextStyle: 'white', //标题栏字体颜色
    navigationBarBackgroundColor: '#0063AF', //标题栏背景色(纯色)
  },
}
</route>

<template>
  <view class="publicBenefit w-screen h-screen">
    <!-- <view class="flex flex-col mb-40rpx">
      <text class="text-34rpx font-550 text-#000 mb-20rpx">请输入房间码</text>
      <text class="text-28rpx text-#9A9B9F">请输入视频接访的房间码</text>
    </view>
    <wd-password-input
      v-model="value"
      :mask="false"
      :focused="showKeyboard"
      @focus="showKeyboard = true"
    />
   
    <wd-number-keyboard v-model="value" v-model:visible="showKeyboard" :maxlength="6" /> -->
    <custom ref="custom"></custom>
  </view>
</template>
<script setup lang="ts">
const custom = ref<any>(null)
const showKeyboard = ref<boolean>(true)
onLoad(() => {
  wx.authorize({
    scope: 'scope.camera',
    success: function () {},
    fail: function () {
      console.log('authorize camera fail')
    },
  })
  wx.authorize({
    scope: 'scope.record',
    success: function () {},
    fail: function () {
      console.log('authorize record fail')
    },
  })
})
function unlockJoin() {
  custom.value.unlockJoin()
}
const onInput = (value) => {
  console.log(value)
}
defineExpose({
  unlockJoin,
})
</script>
